package com.gusha.dao;

import java.math.BigInteger;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.gusha.model.SysGround;
import com.gusha.model.User;

@Repository
public interface SysGroundDao extends JpaRepository<SysGround, BigInteger>,JpaSpecificationExecutor<SysGround>{

	List<SysGround> findByUserIdAndPaymentState(User userId, BigInteger bigInteger);

	List<SysGround> findAllByUserId(User uid);

	List<SysGround> findAllByUserIdAndGroundType(User uid, BigInteger bigInteger);

}
